#!/bin/bash

###########################################
#安装 jsoncpp-0.5.0
###########################################

#下载conda安装脚本
cd /home
wget --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2023.09-0-Linux-aarch64.sh

#执行安装
bash ./Anaconda3-2023.09-0-Linux-aarch64.sh -b
source ~/.bashrc
ln -s /root/anaconda3/bin/conda /usr/bin/conda
conda --version
conda init
source ~/.bashrc
echo "channels:
  - conda-forge
  - bioconda
  - defaults
custom_channels:
report_errors: true
channel_priority: strict" > ~/.condarc

cat ~/.condarc

#安装软件
cd /home
conda create -n perl-archive-tar-wrapper -y
conda activate perl-archive-tar-wrapper
conda install perl-archive-tar-wrapper=0.33 -y

#############################################
#运行验证
#############################################

#查询版本信息
#1.创建 check_version.pl 脚本文件
cd /home
vi check_version.pl

use Archive::Tar::Wrapper;
print "Archive::Tar::Wrapper version: ", $Archive::Tar::Wrapper::VERSION, "\n";

#2.执行脚本
perl check_version.pl





# 创建 check_version.pl 脚本文件
cat > check_version.pl << 'EOF'
use Archive::Tar::Wrapper;
print "Archive::Tar::Wrapper version: ", $Archive::Tar::Wrapper::VERSION, "\n";
EOF









